home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTFileProperties.pas' rev: 3.00
-
- #ifndef AHMTFilePropertiesHPP
- #define AHMTFilePropertiesHPP
- #include <AHMSystem.hpp>
- #include <ShellAPI.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <SysUtils.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtfileproperties
- {
- //-- type declarations -------------------------------------------------------
- enum TFileAttr { ftReadOnly, ftHidden, ftSystem, ftVolumeID, ftDirectory, ftArchive, ftNormal };
-
- typedef Set<TFileAttr, ftReadOnly, ftNormal> TFileType;
-
- class DELPHICLASS TAHMFileProperties;
- class PASCALIMPLEMENTATION TAHMFileProperties : public Ahmsystem::TAHMSystemsComponent
- {
- typedef Ahmsystem::TAHMSystemsComponent inherited;
-
- private:
- TFileType FFileAttributes;
- System::AnsiString FFileAttrShort;
- System::AnsiString FFileExt;
- System::AnsiString FFilePath;
- System::AnsiString FFilename;
- System::AnsiString FFilenameExt;
- System::AnsiString FFilenameAlone;
- System::TDateTime FFileDateTime;
- System::AnsiString FFileDate;
- System::AnsiString FFileTime;
- int FFileSize;
- void __fastcall SeTFileProperties(TFileType aValue);
- void __fastcall SetFileAttrShort(System::AnsiString aValue);
- void __fastcall SetFilename(System::AnsiString aValue);
- void __fastcall SetFilenameAlone(System::AnsiString aValue);
- void __fastcall SetFilenameExt(System::AnsiString aValue);
- void __fastcall SetFileExt(System::AnsiString aValue);
- void __fastcall SetFilePath(System::AnsiString aValue);
- void __fastcall SetFileDateTime(System::AnsiString aValue, bool mode);
- void __fastcall SetFileDate(System::AnsiString aValue);
- void __fastcall SetFileTime(System::AnsiString aValue);
- void __fastcall SetFileSize(int aValue);
- TFileType __fastcall GeTFileProperties(void);
- int __fastcall GetFileSize(const System::AnsiString filename);
- void __fastcall RefreshState(void);
-
- __published:
- __property System::AnsiString Date = {read=FFileDate, write=SetFileDate, stored=false};
- __property System::AnsiString Time = {read=FFileTime, write=SetFileTime, stored=false};
- __property System::AnsiString Extension = {read=FFileExt, write=SetFileExt, stored=false};
- __property System::AnsiString Path = {read=FFilePath, write=SetFilePath, stored=false};
- __property System::AnsiString NameAndExtension = {read=FFilenameExt, write=SetFilenameExt, stored=false
- };
- __property System::AnsiString NameOnly = {read=FFilenameAlone, write=SetFilenameAlone, stored=false
- };
- __property System::AnsiString Filename = {read=FFilename, write=SetFilename, stored=false};
- __property TFileType Attributes = {read=FFileAttributes, write=SeTFileProperties, stored=false, nodefault
- };
- __property System::AnsiString AttributesShort = {read=FFileAttrShort, write=SetFileAttrShort, stored=false
- };
- __property int Size = {read=FFileSize, write=SetFileSize, stored=false, nodefault};
- public:
- /* TAHMSystemsComponent.Create */ __fastcall virtual TAHMFileProperties(Classes::TComponent* AOwner
- ) : Ahmsystem::TAHMSystemsComponent(AOwner) { }
-
- public:
- /* TComponent.Destroy */ __fastcall virtual ~TAHMFileProperties(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Ahmtfileproperties */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtfileproperties;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTFileProperties
-